home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / DJDEV111.ZIP / include / stddef.h < prev    next >
C/C++ Source or Header  |  1993-11-30  |  2KB  |  65 lines

  1. /* This is file stddef.h */
  2. /* This file may have been modified by DJ Delorie (Jan 1991).  If so,
  3. ** these modifications are Coyright (C) 1991 DJ Delorie, 24 Kirsten Ave,
  4. ** Rochester NH, 03867-2954, USA.
  5. */
  6.  
  7. /* This may look like C code, but it is really -*- C++ -*- */
  8. /* 
  9. Copyright (C) 1988 Free Software Foundation
  10.     written by Doug Lea (dl@rocky.oswego.edu)
  11.  
  12. This file is part of GNU CC.
  13.  
  14. GNU CC is distributed in the hope that it will be useful,
  15. but WITHOUT ANY WARRANTY.  No author or distributor
  16. accepts responsibility to anyone for the consequences of using it
  17. or for whether it serves any particular purpose or works at all,
  18. unless he says so in writing.  Refer to the GNU CC General Public
  19. License for full details.
  20.  
  21. Everyone is granted permission to copy, modify and redistribute
  22. GNU CC, but only under the conditions described in the
  23. GNU CC General Public License.   A copy of this license is
  24. supposed to have been given to you along with GNU CC so you
  25. can know your rights and responsibilities.  It should be in a
  26. file named COPYING.  Among other things, the copyright notice
  27. and this notice must be preserved on all copies.  
  28. */
  29.  
  30. #ifndef _stddef_h
  31.  
  32. #define _stddef_h
  33.  
  34. /* TRUE, FALSE, bool, are now in <bool.h>, for ANSI compatibility */
  35.  
  36. /* #define size_t unsigned */
  37. #ifndef _SIZE_T_
  38. #define _SIZE_T_ unsigned long
  39. typedef unsigned long   size_t;
  40. #endif 
  41.  
  42. #ifndef _PTRDIFF_T_
  43. #define _PTRDIFF_T_ long int
  44. typedef long int            ptrdiff_t;
  45. #endif
  46.  
  47. #ifndef _WCHAR_T_
  48. #define _WCHAR_T_ unsigned short
  49. typedef int  wchar_t;
  50. #endif
  51.  
  52. #ifndef NULL
  53. #define NULL 0
  54. #endif
  55.  
  56. #ifndef offsetof
  57. #define offsetof(type,rec) ((int)(&(((type *)0)->rec)))
  58. #endif
  59.  
  60. #ifndef alloca
  61. #define alloca(x)  __builtin_alloca(x)
  62. #endif
  63.  
  64. #endif
  65.